home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
batchut
/
sprbat3b.zip
/
RUNME.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-21
|
3KB
|
140 lines
echo off
nocurs
raw on
toggle +c > nul
bebe color bright yellow on black clear
:no
echo
echo
bebe getstring first What is your first name?
echo
echo
bebe getstring last What is your last name?
echo
echo
echo %first% %last%
echo Is this correct?
:reply
bebe getkey
if %key%==N goto no
if %key%==Y goto yes
beep
echo You must answer Y for yes or N for no!
goto reply
:yes
set last=
cls
echo
echo
echo Well hello %first% !
echo
echo This is a sample batch file that I have written to illustrate
echo the unique capabilities that these little utilities can give!
bebe hold 7
echo
echo
echo These are simplistic examples, but I hope they will give you
echo an idea of what can be accomplished with these utilities.
echo
echo
echo To continue go ahead and
pause
:box
bebe color bright cyan on black clear
sound t
bebe box 11 38 2 4 1
bebe box 10 35 4 10 1
bebe box 9 32 6 16 1
bebe box 8 29 8 22 1
bebe box 7 26 10 28 1
bebe box 6 23 12 34 1
bebe color bright magenta on black
sound t
bebe box 11 38 2 4 2
bebe box 10 35 4 10 2
bebe box 9 32 6 16 2
bebe box 8 29 8 22 2
bebe box 7 26 10 28 2
bebe box 6 23 12 34 2
bebe color black on black
sound t
bebe box 11 38 2 4 2
bebe box 10 35 4 10 2
bebe box 9 32 6 16 2
bebe box 8 29 8 22 2
bebe box 7 26 10 28 2
bebe box 6 23 12 34 2
bebe color bright yellow on black
bebe getstring age How Old Are You %first% ?
cls
:candles
bebe calc %age% + 1
set age=%result%
set cnt=0
set candle=F
:loop
bebe calc %cnt% + 1
set cnt=%result%
if %cnt%==%age% goto skip
echo
if %cnt%==10 set candle=T
if %candle%==T goto ten
echo Ö
echo ███
bebe say %cnt%
echo ███
echo ███
goto loop
:ten
echo Ö
echo ███
bebe say %cnt%
echo ███
echo ███
goto loop
:skip
echo
bebe calc %age% - 1
echo Aren't you glad you didn't have to blow those %result% candles out?
echo
set age=
set cnt=
set candle=
pause
cls
:encounter
echo Press any key for a close encounter
echo
bebe getkey
tune 1.9
tune 2.9
tune 3.9
:done
cls
bebe status clear
echo
echo
echo Well that concludes this demonstration.
echo
echo I hope that you have found it interesting %first%!
echo And I hope that you find these utilities useful.
echo
echo To get a printout of the documentation simply type:
echo
echo COPY SUPERBAT.DOC PRN
echo
bebe hold 5
echo
echo
echo Good Bye!
set first=
normal
toggle -c > nul
raw off
echo